*:focus {
  outline: none;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background-color: #f5f5f5;
  color: #555;
}

body {
  -webkit-transition: all .3s;
  transition: all .3s;
  font-size: 1.4rem;
}

ul {
  margin-top: 0;
}

.admin-icon-yellow {
  color: #ffbe40;
}

.admin-header {

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  font-size: 1.4rem;
  margin-bottom: 0;
  border: none;
  background: #fff;

  .header-time {
    float: left;
    line-height: 50px;
    height: 50px;
    padding: 0 10px;
  }

  .admin-topbar-toggle-menu {
    float: left;
    margin-left: 10px;
  }

  .admin-topbar-toggle {
    color: #fff;
    font-size: 2.2rem;
    margin: 0;
    height: 50px;
    line-height: 50px;
    padding: 0 20px;
    border: none;
    background: transparent;
  }

  @media only screen and (max-width: 640px) {
    .admin-header-brand {
      width: 100%;
      position: absolute;
    }
    .am-topbar-collapse {
      padding: 10px;
      padding-bottom: 0;
    }
  }

  .am-topbar-nav > li > a:after {
    display: none;
  }
  .am-nav > li.am-active > a, .am-nav > li.am-active > a:focus, .am-nav > li.am-active > a:hover {
    background: transparent;
    color: #3ba0ff;
  }

}

.admin-header-brand {
  font-size: 1.8rem;
  color: #fff;
  background-color: #3ba0ff;
  width: 210px;
  text-align: center;
  .brand-title {

  }
}

.admin-header-list a:hover :after {
  content: none;
}

.admin-main {
  position: relative;
  height: 100%;
  background: #f3f3f3;
  padding-top: 50px;
}

.admin-menu {
  position: fixed;
  z-index: 10;
  bottom: 30px;
  right: 20px;
}

.admin-sidebar {
  width: 210px;
  min-height: 100%;
  float: left;
  .am-panel {
    border: none;
    background: rgba(19, 34, 50, 0.44);
    color: #909090;
  }
}

.admin-sidebar.am-active {
  z-index: 1600;
}

.admin-sidebar-user {
  background: rgba(19, 34, 50, 0.44);
  color: #fff;
  padding: 20px 10px;
  a {
    color: #fff;
  }
  strong {
    display: block;
  }
  .user-avatar {
    width: 55px;
    height: 55px;
    float: left;
  }
  .user-info {
    margin: 0;
    margin-left: 70px;
    padding-top: 4px;
    .username {
      font-size: 1.6rem;
      color: #fff;
    }
    p {
      margin: 0;
      color: #909090;
    }

  }

}

.admin-sidebar-list {
  margin-bottom: 0;
  li {
    background: none;
    border: medium;
    &:first-child {
      border-top: none;
    }
    a {
      color: #909090;
      padding-left: 24px;
    }
  }
  > .admin-active {
    > a {
      background-color: #2e3f50;
      border-left: 3px solid #3ba0ff;
      color: #b4b6b4;
    }

    .admin-active {
      a {
        color: #fff;
      }
    }
  }
}

.admin-sidebar-sub {
  margin-top: 0;
  margin-bottom: 0;
  background: rgba(19, 34, 50, 0.44);
  padding-left: 24px;
}

.admin-sidebar-panel {
  margin: 10px;
}

.admin-content {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  border-top: 1px solid #e5e5e5;
}

.admin-content,
.admin-sidebar {
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

.admin-content-body {
  -webkit-box-flex: 1;
  -webkit-flex: 1 0 auto;
  -ms-flex: 1 0 auto;
  flex: 1 0 auto;
}

.admin-content-footer {
  font-size: 85%;
  color: #777;
}

.admin-content-list {
  background: #fff;
  margin-top: 0;
  li {
    border: 1px solid #e9ecf1;
    border-width: 0 1px;
    margin-left: -1px;
    &:first-child {
      border-left: none;
    }
    &:last-child {
      border-right: none;
    }
  }
}

.admin-content-table a {
  color: #535353;
}

.admin-content-file {
  margin-bottom: 0;
  color: #666;
}

.admin-content-file p {
  margin: 0 0 5px 0;
  font-size: 1.4rem;
}

.admin-content-file li {
  padding: 10px 0;
}

.admin-content-file li:first-child {
  border-top: none;
}

.admin-content-file li:last-child {
  border-bottom: none;
}

.admin-content-file li .am-progress {
  margin-bottom: 4px;
}

.admin-content-file li .am-progress-bar {
  line-height: 14px;
}

.admin-content-task {
  margin-bottom: 0;
}

.admin-content-task li {
  padding: 5px 0;
  border-color: #eee;
}

.admin-content-task li:first-child {
  border-top: none;
}

.admin-content-task li:last-child {
  border-bottom: none;
}

.admin-task-meta {
  font-size: 1.2rem;
  color: #999;
}

.admin-task-bd {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.admin-content-comment {
  margin-bottom: 0;
}

.admin-content-comment .am-comment-bd {
  font-size: 1.4rem;
}

.admin-content-pagination {
  margin-bottom: 0;
}

.admin-content-pagination li a {
  padding: 4px 8px;
}

@media only screen and (min-width: 641px) {
  .admin-sidebar {
    display: block;
    position: static;
  }

  .admin-offcanvas-bar {
    position: static;
    width: auto;
    background: none;
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    overflow-y: visible;
    min-height: 100%;
    background: #253341;
  }
  .admin-offcanvas-bar:after {
    content: none;
  }
}

@media only screen and (max-width: 640px) {
  .admin-sidebar {
    width: inherit;
  }

  .admin-offcanvas-bar {
    background: #253341;
  }

  .admin-offcanvas-bar:after {
    background: #253341;
  }

  .admin-content-list li {
    padding: 10px;
    border-width: 1px 0;
    margin-top: -1px;
  }

  .admin-content-list li:first-child {
    border-top: none;
  }

  .admin-content-list li:last-child {
    border-bottom: none;
  }

  .admin-form-text {
    text-align: left !important;
  }

}

/*
* user.html css
*/
.user-info {
  margin-bottom: 15px;
}

.user-info .am-progress {
  margin-bottom: 4px;
}

.user-info p {
  margin: 5px;
}

.user-info-order {
  font-size: 1.4rem;
}

/*
* errorLog.html css
*/

.error-log .am-pre-scrollable {
  max-height: 40rem;
}

/*
* table.html css
*/

.table-main {
  font-size: 1.4rem;
  padding: .5rem;
}

.table-main button {
  background: #fff;
}

.table-check {
  width: 30px;
}

.table-id {
  width: 50px;
}

@media only screen and (max-width: 640px) {
  .table-select {
    margin-top: 10px;
    margin-left: 5px;
  }
}

/*
gallery.html css
*/

.gallery-list li {
  padding: 10px;
}

.gallery-list a {
  color: #666;
}

.gallery-list a:hover {
  color: #3bb4f2;
}

.gallery-title {
  margin-top: 6px;
  font-size: 1.4rem;
}

.gallery-desc {
  font-size: 1.2rem;
  margin-top: 4px;
}

/*
 404.html css
*/

.page-404 {
  background: #fff;
  border: none;
  width: 200px;
  margin: 0 auto;
}

.am-panel-default {
  > .am-panel-hd {
    border-bottom: 1px solid #eee;
    padding: 10px 15px;
    position: relative;
    background-color: #fff;
  }
}

.am-panel {
  border: none;
}

.am-panel-hd {
  border-bottom: none;
  font-weight: bold;
}

.am-table {
  background-color: #fff;
}

.am-table > thead > tr > th {
  border-bottom: 1px solid #eee;
}

.am-table > tbody > tr > td, .am-table > tbody > tr > th, .am-table > tfoot > tr > td, .am-table > tfoot > tr > th, .am-table > thead > tr > td, .am-table > thead > tr > th {

  border-top: 1px solid #eee;
  padding: 8px;
  vertical-align: middle;
}

@media screen and (max-width: 600px) {

  .am-table {
    border: 0;
    thead {
      display: none;
    }
    tr {
      margin-bottom: 10px;
      display: block;
    }
    td {
      display: block;
      text-align: right !important;
      font-size: 13px;
      min-height: 38px;
      &:last-child {
        border-bottom: 0;
      }
      &:before {
        content: attr(data-label);
        float: left;
        text-transform: uppercase;
        font-weight: bold;
      }
    }
  }

  .admin-table {
    .table-tools {
      a.am-btn {
        display: block;
      }
      form {
        > div {
          margin-top: 5px;
        }
      }
    }
  }

}

.admin-table {
  .table-tools {
    margin-bottom: 10px;
  }
}

.admin-pages {
  text-align: right;
  a, span {
    display: inline-block;
    padding: .5em 1em;
    text-decoration: none;
    line-height: 1.2;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    margin-bottom: 5px;
    margin-right: 5px;
  }
  .current {
    z-index: 2;
    color: #fff;
    background-color: #0e90d2;
    border-color: #0e90d2;
    cursor: default;
  }
}

.dux-images {
  list-style: none;
  margin: 0;
  padding: 0;
  li, .sortable-placeholder {
    margin-top: 10px;
    margin-right: 10px;
    float: left;
    width: 170px;
    height: 160px;
    border: 1px dashed #ddd;
    cursor: pointer;
  }
  li {
    border: 1px solid #ddd;
    img {
      width: 150px;
      height: 120px;
      margin: 10px;
      margin-bottom: 0;
    }
    .info {
      height: 30px;
      line-height: 30px;
    }
    .title {
      float: left;
      display: block;
      width: 110px;
      height: 30px;
      overflow: hidden;
      padding-left: 10px;
    }
    .del {
      float: right;
      color: red;
      margin-right: 10px;
    }
  }
}

.am-form-content {
  padding-top: .6em;
}

.dux-color {
  list-style: none;
  padding: 5px;
  margin: 0;
  width: 138px;
  li {
    display: inline-block;
    line-height: normal;
    margin: 0;
    padding: 0;
    height: auto;
    a {
      display: block;
      padding: 0;
      width: 22px;
      height: 22px;
      text-indent: -173px;
    }

  }
}

.dux-color-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  background: #fff;
  vertical-align: top;
}

.dux-g {
  margin-left: -1.5rem;
  margin-right: -1.5rem;

  @media all and (max-width: 641px) {
    margin-left: -1rem;
    margin-right: -1rem;
  }
}


.dux-box {
  display: flex;
  flex-wrap: nowrap;
  @media screen and (max-width: 641px) {
    display: block;
  }
  .box-side {
    width: 250px;
    @media screen and (max-width: 641px) {
      display: block;
      width: auto;
    }
  }
  .box-body {
    flex:1;
    padding-left: 20px;
    @media screen and (max-width: 641px) {
      flex: auto;
      display: block;
      width: auto;
      padding: 0;
    }
  }
}

.dux-flex-layout {
  display: flex;
  flex-wrap: nowrap;
  .flex-auto {
    flex:1;
  }
}